package com.maltys.abstract_demo;

public class Manager extends Employee {
    private Double bonus;

    public Manager(Integer id, String name, Double salary, Double bonus) {
        super(id, name, salary);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        String format = String.format("经理%s工作中", getName());
        System.out.println(format);
    }
}
